<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="format-detection" content="telephone=no">
    <!--留存统计-->
    <script type="text/javascript" src="https://hy.yixueqm.com/zhiming/index.php/Home-Interface-remain?typeName=SSSD-Z&nickName=八字财运-支付页&channel=<?php echo (cookie('channel')); ?>&uid=<?php echo (cookie('uid')); ?>"></script>

    <title>六道轮回</title>
    <!--[if lt IE 9]>  
        <script src="http://cdn.bootcss.com/html5shiv/r29/html5.js"></script>
        <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>    
    <![endif]-->
    <link rel="stylesheet" href="/zhiming/Public/css/ZM_share.css" />
    <script src="/zhiming/Public/js/rem.js"></script>
    <script src="/zhiming/Public/js/jquery.min.js"></script>
    <style>
		body{background-color:#ffcf96;font-family:"PingFang-SC-Medium";}
        .lc_box, .lc_con, .master_introduction, .obp_user, .obp_user .txt, .public_bg_white, .public_bzcy_title, .public_have_test, .uf_ul li, .uf_ul_wrap, .user_feedback {overflow: hidden;}
        .lock_content {margin: 5px 0;border-bottom: 5px solid #e0e0e0;}
        .bzjp_zf_top{
           background:url('/zhiming/Public/images/sssd_img/pay/1.png') no-repeat;
           background-size:100% auto;
           margin:0.1rem 0.1rem 0.2rem;
		   padding-bottom:6%;
       }
       .redColor{color:#f73232;font-size:0.32rem;font-weight: 600;}
       .bzjp_zf_content{
           width:50%;
           padding-top:0.5rem;
           margin-left:0.4rem;
       }
       .bzjp_color{color:#f73232;}
       .bzjp_zf_content p{font-size:0.28rem;color:#333333;}
       .bzjp_zf_content p:nth-child(3){font-size:0.24rem;color:#333333;padding-top:0.14rem;padding-bottom: 0.2rem;text-align: center;}
       .ljck_btn{
           background-color:#f73232;
           font-size:0.36rem;
           color:#ffffff;
           text-align: center;
           border-radius: 0.7rem;
           height:0.8rem;
           line-height: 0.8rem;
           width:80%;
           margin:0 auto;
        }
        .bzjp_zf_time{font-size:0.24rem;color:#333333;padding:0.2rem 0;text-align: center;}
        .lc_tip span{line-height: 25px;text-align: center;}
        .lc_tip span {
            display: block;
            width: 80%;
            margin: 20px auto;
            background: url(/zhiming/Public/images/bzcy_img/bg_pay_title.jpg) repeat-x;
            position: relative;
            background-size: 100% 25px;
            color: #fffce6;
            font-size: 14px;
        }
        .lc_tip span:after, .lc_tip span:before {
            position: absolute;
            top: 0;
            content: '';
            background: url(/zhiming/Public/images/bzcy_img/icon_lr_title2.jpg) no-repeat;
            width: 9px;
            height: 25px;
            background-size: 100% 100%;
        }
        .lc_tip span:before{left: 0;}
        .lc_tip span:after {
            transform: scaleX(-1);
            right: 0;
            -moz-transform: scaleX(-1);
            -webkit-transform: scaleX(-1);
            -o-transform: scaleX(-1);
        }
        .lc_box .lc_tit {text-align: center;margin: 10px 0;}
        .lc_box .lc_tit .red {font-size: 18px;font-weight: 700;color: #c30;}
        .lc_con {margin: 5px;}
        .lc_con p {margin-bottom: 10px;}
        .lc_con img {display: block;width: 100%;}
        .public_btn_s {padding:10px 5px;}
        .public_btn_s a {
            position: relative;
            line-height: 30px;
            display: block;
            background-color:#9F7D51;
            color:#fff;
            height:30px;
            border-radius: 5px;
            text-align: center;
            font-size: 16px;
        }
        .fiex_bt{height:50px;line-height: 50px;font-size:18px;}
        .fiex_bt a{background-color:#D60F00;height:40px;line-height: 40px}
		.pay_know{margin:0px 7px 0px;}
		.pay_know p{margin-bottom:8px;}
		.pay_know .title{
		    text-align: center;
		    margin:0 46px 20px;
		    height:35px;
		    line-height: 35px;
		    font-size:12px;
		    background-color:#945A29;
		    color:#ffffff;
		}
		.row{height:35px;}
    </style>
</head>
<body>
    <style>
  /* 新改头部 */
.omd_header{
    height: 1rem;
    line-height: 1rem;
    overflow: hidden;
    background-color:#ffffff;
}
.omd_back{
    width:1rem;
    height: 1rem;
    float: left;
    background:url('/zhiming/Public/images/public/goHome.png') center no-repeat;
    background-size:0.48rem;;
}
.omd_home{
    color:#de2126;
    font-size:0.3rem;
    position: relative;
    display: inline-block;
    font-weight: bold;
}
.jiantou{
  display: inline-block;
  width:0.17rem;
  height:0.3rem;
  vertical-align: middle;
  background:url('/zhiming/Public/images/public/more.png')  no-repeat;
  background-size:100% 100%;
}
.omd_title{
    font-size:0.3rem;
    color:#666666;  
    position: relative;
    display: inline-block;
}
.omd_menu{
    float:right;
    width:1rem;
    height: 1rem;   
    background:url('/zhiming/Public/images/public/menu.png') center no-repeat;
    background-size:0.52rem;;
    display: none;
}
.omd_order{
    float:right;
    width:1rem;
    height: 1rem;   
    background:url('/zhiming/Public/images/public/mytest.png') center no-repeat;
    background-size:0.52rem;
    display: none;
}
/* omd_menu */
.omd_menu_container{
  height:calc(100Vh - 1rem);
  width:100%;
  position: fixed;
  left:0;
  right: 0;
  bottom:0;
  border-top:2px solid #eeeeee;
  box-sizing: border-box;
  background-color:rgba(255,255,255,0.9);
  display: none;
  transform: translate3d(0,0,0);
  z-index: 99;
}
.omd_menu_container.on{
  display: block;
  opacity: 1;
}
.omd_menu_container.menuShow{
  animation: menuin 0.3s forwards ease-out;
  -webkit-animation: menuin 0.3s forwards ease-out;
}
.omd_menu_container.menuHidden{
  animation: menuOut 0.3s forwards ease-out;
  -webkit-animation: menuOut 0.3s forwards ease-out;
}
@keyframes menuin{
  0%{
    transform: scale(3);
    -webkit-transform: scale(3);
    -ms-transform: scale(3);
    -moz-transform: scale(3);
    opacity: 0;
  }
  100%{
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -moz-transform: scale(1);
    opacity: 1;
  }
}
@keyframes menuOut{
  0%{
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -moz-transform: scale(1);
    opacity: 1;
  }
  100%{
    transform: scale(3);
    -webkit-transform: scale(3);
    -ms-transform: scale(3);
    -moz-transform: scale(3);
    opacity: 0;
  }
}
.omd_menu_wrap{
  margin:0 0.3rem;
}
.omd_menu_ul{
  display: flex;
  flex-wrap: wrap;
}
.omd_menu_li{
  width:calc(100% / 3);
  margin-top:0.1rem;
}
.omd_menu_a{
  display: block;
}
.omd_menu_a figure img{
  width:1.3rem;
  height:1.3rem;
  vertical-align: middle;
  display: block;
  margin:0 auto;
}
.omd_menu_a p{
  font-size:0.36rem;
  color:#333333;
  text-align: center;
  line-height: 1.7;
}
.channel91{
  display: block;
  position: absolute;
  top: .1rem;
  right:.1rem;
  width: .56rem;
  height: 0.55rem;
  background: url('/zhiming/Public/images/public/tp.png') no-repeat center center;
  background-size: 100% 100%;
}

</style>
<!-- 头部 -->
<?php if($_COOKIE['channel']== 'qudao91'): ?><a href="<?php echo U('Index/mycesuan','',false);?>" class="omd_order channel91"></a>
    <?php elseif($_COOKIE['hideAllCsNum']== 1): ?>
    <?php else: ?>
    <header class="omd_header">
        <a href="<?php echo U('Index/index','',false);?>" class="omd_back"></a>
        <a href="<?php echo U('Index/index','',false);?>" class="omd_home">测算大全</a>
        <span class="jiantou"></span>
        <span class="omd_title"><?php echo ($titleName['title']); ?></span>
        <span class="omd_menu"></span>

        <a href="<?php echo U('Index/mycesuan','',false);?>" class="omd_order"></a>

    </header><?php endif; ?>


<!-- menu菜单 -->
<aside class="omd_menu_container">
  <div class="omd_menu_wrap">
    <ul class="omd_menu_ul">
        <li class="omd_menu_li">
            <a href="<?php echo U('Lnyc2020/index','',false);?>" class="omd_menu_a">
                <figure><img src="/zhiming/Public/images/public/v2/menu_01.png" alt=""></figure>
                <p>2020年运势</p>
            </a>
        </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Bzjp/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174200502.png" alt=""></figure>
          <p>八字精批</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Bzsy/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174511370.png" alt=""></figure>
          <p>事业运势</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Szjx/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174524905.png" alt=""></figure>
          <p>数字解析</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Xmcs/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174547665.png" alt=""></figure>
          <p>姓名详批</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Bzcy/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174607455.png" alt=""></figure>
          <p>八字财运</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Hyzs/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174614741.png" alt=""></figure>
          <p>婚缘走势</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Bzhh/index','',false);?>" class="omd_menu_a">
          <figure><img src="http://qiniu.ddznzj.com/media/180817/180817174148357.png" alt=""></figure>
          <p>八字合婚</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Bbqm/index','',false);?>" class="omd_menu_a">
          <figure><img src="/zhiming/Public/images/public/menu_02.png" alt=""></figure>
          <p>宝宝起名</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Lath/index','',false);?>" class="omd_menu_a">
          <figure><img src="/zhiming/Public/images/public/menu_03.png" alt=""></figure>
          <p>恋爱桃花运</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Xzcs/index','',false);?>" class="omd_menu_a">
          <figure><img src="/zhiming/Public/images/public/menu_04.png" alt=""></figure>
          <p>星盘测算</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Pfc/index','',false);?>" class="omd_menu_a">
          <figure><img src="/zhiming/Public/images/public/menu_05.png" alt=""></figure>
          <p>剖腹产择日</p>
        </a>
      </li>
      <li class="omd_menu_li">
        <a href="<?php echo U('Zwds/index','',false);?>" class="omd_menu_a">
          <figure><img src="/zhiming/Public/images/public/menu_06.png" alt=""></figure>
          <p>一生运势</p>
        </a>
      </li>

        <li class="omd_menu_li">
            <a href="<?php echo U('Mrbz/index','',false);?>" class="omd_menu_a">
                <figure><img src="/zhiming/Public/images/public/menu_mrbz.png" alt=""></figure>
                <p>名人八字</p>
            </a>
        </li>
        <li class="omd_menu_li">
            <a href="<?php echo U('Bzhy/index','',false);?>" class="omd_menu_a">
                <figure><img src="/zhiming/Public/images/public/menu_bzhy.png" alt=""></figure>
                <p>八字婚缘</p>
            </a>
        </li>
        <li class="omd_menu_li">
            <a href="<?php echo U('Sndy/index','',false);?>" class="omd_menu_a">
                <figure><img src="/zhiming/Public/images/public/menu_sndy.png" alt=""></figure>
                <p>十年大运</p>
            </a>
        </li>
        <li class="omd_menu_li">
            <a href="<?php echo U('Sssd/index','',false);?>" class="omd_menu_a">
                <figure><img src="/zhiming/Public/images/public/menu_sssd.png" alt=""></figure>
                <p>六道轮回</p>
            </a>
        </li>

    </ul>
  </div>
</aside>
<script>
  $().ready(function(){
    var isHome = "<?php echo ($titleName['number']); ?>";
    if(isHome == '1'){
      $('.omd_menu').show();
      $('.myOrderNav').show();
      $('.omd_order').show();
    }
  });
  $('.omd_menu').on('click',function(){
    var $node = $('.omd_menu_container');
    $('.omd_menu_container').addClass('on');
    $('.omd_menu_container').toggleClass('menuShow');
    if(!$('.omd_menu_container').hasClass('menuShow')){
      $('.omd_menu_container').addClass('menuHidden');
      setTimeout(function(){
        $('.omd_menu_container').removeClass('menuHidden');
        $('.omd_menu_container').removeClass('on');
      },300)
    }
  })
</script>

<script type="text/javascript">
    var orderidnum="<?php echo ($orderidnum); ?>";
    var channel='<?php echo (cookie('channel')); ?>';
    if(orderidnum=='Bzjp'&&channel=='qudao336'){
        console.log('336CS');
        (function() {var octm = document.createElement("script");var h = (("https:" == document.location.protocol) ? "https://" : "http://");octm.src = h+"stat.adintl.cn/h.js";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(octm, s);})();
    }
</script>




    <div class="bzjp_zf_top">
        <div class="bzjp_zf_content">
            <h2 class="redColor"><?php if($znickname == '匿名'): else: echo ($znickname); endif; ?>：</h2>
            <p>你的出生日期是 <span class="redColor"><?php echo ($datetype); ?></span> 八字为<span class="redColor"><?php echo ($sizhu[0]); ?> <?php echo ($sizhu[1]); ?> <?php echo ($sizhu[2]); ?> <?php echo ($sizhu[3]); ?></span>。前世因今世报,六道轮回详批揭示你的今世业力果报，一定要看!</p>
            <p class="orderMoney">只需<?php echo (cookie('priceName')); ?></p>
            <div class="ljck_btn">立即查看</div>
        </div>
	</div>
   
	
	<div class="pay_know">
	    <p>
	        <img src="/zhiming/Public/<?php echo ($imgPath); ?>/sssd_img/pay/2.png" width="100%"/>
	    </p>
		<p>
		    <img src="/zhiming/Public/<?php echo ($imgPath); ?>/sssd_img/pay/3.png" width="100%"/>
		</p>
	</div>

    <div class="public_pay_popup" id="publicPayPopup" style="display: none;">
        <div class="public_pp_box">
            <div class="public_pp_close" id="publicPPClose">X</div>
            <div class="public_pp_tit">解锁查看所有测算结果</div>
            <div class="public_pp_price">
                <span>统一鉴定价：</span><strong>￥<?php echo (cookie('price')); ?>元</strong>
            </div>
            <div class="public_pay_box">

                <!-- 支付弹窗 -->
                <style>
    .aidoupay{
        background-color: #FFA07A;
    }
    /*hx_huawei*/
</style>

<div id="qrcode"></div>
<?php if(($wxlogin == 1) or ($_COOKIE['wxlogin']== 1)): ?><a class="weixin weixinzf" target="_self" ><img src="/zhiming/Public/images/public/wxzf.png" />微信安全支付</a>
    <?php elseif(($zhifuType == 1) and ($channel == qudao210)): ?>
    <a class="weixin" target="_self" onclick="payMoney('wx')" href="javascript:;"><img src="/zhiming/Public/images/public/wxzf.png" />微信安全支付</a>
    <a class="alipay" target="_self" onclick="payMoney('zfb')" href="javascript:;"><img src="/zhiming/Public/images/public/zfbzf.png" />支付宝安全支付</a>
<?php elseif($pc == 1): ?>
    <div class="wxzf_point"><img src="/zhiming/Public/images/public/wx_smzf.png"  alt="微信扫码支付"></div>
<?php elseif(($channel == qudao26) or ($channel == C001) ): ?>
  <a class="zfst weixin" target="_self" onclick="payMoney('wx')" href="javascript:;"><img src="/zhiming/Public/images/public/wxzf.png" />微信安全支付</a>
<?php elseif(($channel == qudao245) and ($_COOKIE['QTTopenid']!= '')): ?>
  <a href="javascript:;" class="zfst zf alipay" onclick="payMoney245()"><img src="/zhiming/Public/images/public/zfbzf.png" alt="支付宝支付"/>支付</a>
<?php elseif(($channel == qudao135) or ($channel == qudao210)): ?>
  <a href="javascript:;" onclick="payMoney135(1)" class="zf weixin"><img src="/zhiming/Public/images/public/wxzf.png" alt="微信支付"/>微信支付</a>
  <a class="alipay" target="_self" onclick="payMoney135(3)" href="javascript:;"><img src="/zhiming/Public/images/public/zfbzf.png" />支付宝安全支付</a>
    <?php elseif($_COOKIE['hideKefuWxZfAnd']== 1): ?>
    <a class="alipay" target="_self" onclick="payMoney('zfb')" href="javascript:;"><img src="/zhiming/Public/images/public/zfbzf.png" />支付宝安全支付</a>
    <?php else: ?>
  <a class="weixin" target="_self" onclick="payMoney('wx')" href="javascript:;"><img src="/zhiming/Public/images/public/wxzf.png" />微信安全支付</a>
  <a class="alipay" target="_self" onclick="payMoney('zfb')" href="javascript:;"><img src="/zhiming/Public/images/public/zfbzf.png" />支付宝安全支付</a>
    <?php if(($channel == appaidou)): ?><a class="aidoupay"  target="_self" onclick="aidouPay()" href="javascript:;"><img src="/zhiming/Public/images/public/aidou.png" />爱豆支付</a>
        <?php else: endif; endif; ?>


<style>
.zfst{
  display: flex;
  align-items: center;
}
</style>

<script>
  $('img').on('click',function(e){
    console.log('prevnet')
    e.preventDefault()
  })
</script>


            </div>
        </div>
    </div>

    <!-- 脚 -->
    <footer class="footer_severs" style="padding-bottom:61px;">
        <!--<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.mrkj.sm"><img src="/zhiming/Public/images/public/xz_banner.png" width="100%"/></a>-->
<!--<p  style="text-align: center;">知命文化 | 爱和好运，与你相伴 ！</p>-->
<!--<p  style="text-align: center;">客服QQ: 443108802  微信公众号： 知命</p>-->
<?php if(($_COOKIE['channel']== qudao91) OR ($_COOKIE['channel']== qudao130) OR ($_COOKIE['channel']== qudao172) OR ($_COOKIE['channel']== qudao179) OR ($_COOKIE['channel']== qudao181) OR ($_COOKIE['channel']== qudao191) OR ($_COOKIE['channel']== qudao192) OR ($_COOKIE['channel']== qudao194) OR ($_COOKIE['channel']== qudao195) OR ($_COOKIE['channel']== qudao196) OR ($_COOKIE['channel']== qudao197) OR ($_COOKIE['channel']== qudao198) OR ($_COOKIE['channel']== sjg) OR ($_COOKIE['channel']== lzss) OR ($_COOKIE['channel']== qudao227) OR ($_COOKIE['hideKefuNum']== 1)): ?><p  style="text-align: center;">客服QQ号：2307821835</p>
    <?php elseif($_COOKIE['hideBottomNum']== 1): ?>
    <?php elseif(($_COOKIE['channel']== qudao170)): ?>
    <p  style="text-align: center;">客服电话：13925442366</p>
    <?php elseif(($_COOKIE['showQrCodeNum']== 1)): ?>
    <p style="text-align: center;">客服微信号：qumingxiaoxue</p>
    <?php elseif(($_COOKIE['channel']== qudao50) or ($_COOKIE['channel']== qudao64) or ($_COOKIE['channel']== bbhs)or ($_COOKIE['channel']== zd1) OR ($_COOKIE['channel']== qudao245)): ?>
    <?php else: ?>
    <?php if($_COOKIE['channel']== qudao71): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh71.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($orderidnum == Bbqm): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcodeBbqm.png" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao59): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh59.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao60): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh60.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao61): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh61.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao82): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh82.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao33_1): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh137.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif(($_COOKIE['channel']== qudao136) or ($_COOKIE['channel']== qudao185) or ($_COOKIE['channel']== qudao186) or ($_COOKIE['channel']== qudao187)): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh137.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao137): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh137.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao81): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh81.png" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao199): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh199.png" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== qudao26): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh26.jpg" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['channel']== D001): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_ghD001.png" style="width:140px; height:140px;" /></p>
        <?php elseif($_COOKIE['csType']== Bbqm): ?><p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_bbqm.png" style="width:140px; height:140px;" /></p>
        <?php else: ?>
        <p  style="text-align: center;"><img src="/zhiming/Public/images/public/qrcode_for_gh.jpg" style="width:140px; height:140px;" /></p><?php endif; ?>
    <p  style="text-align: center;">长按二维码加客服微信</p><?php endif; ?>
<!--<p  style="text-align: center;">客服微信号：zhimingpingtai</p>-->
<?php if(($_COOKIE['channel']== qudao50) or ($_COOKIE['channel']== qudao64) or ($_COOKIE['channel']== zd1) OR ($_COOKIE['channel']== qudao245)OR ($_COOKIE['hideBottomNum']== 1)): else: ?>
    <p  style="text-align: center;" style="text-align: center;" >在线服务时间: 周一至周五9:00-18:00<span style="color:#0374F8"></span></p><?php endif; ?>


    </footer>
    <div class="fiex_bt" id="fiex" style="display: block;">
        <a href="javascript:;"><i class="suo"></i>付费解锁所有项</a>
    </div>
    <!-- 抵用券 -->
    <style>
    /* 抵扣券 */
  .couponBtn{font-size:0.22rem;color:#c21717;margin-left:0.2rem;font-size:0.26rem;}
  .orderPrice{
      font-size:0.26rem;
      color:#999999;
      text-decoration: line-through;
  }
  .Dcoupon-container{
      width:100%;
      height:100%;
      position:fixed;
      left:0;
      top:0;right:0;
      bottom:0;
      z-index: 99;
      display: none;
  }
  .Dcoupon-bg{width:100%;height:100%;background-color:rgba(0,0,0,0.5);position: absolute;}
  .Dcoupon-wrap{
      width:5.44rem;
      height:5.94rem;
      background:url('/zhiming/Public/images/public/img_bj.png') 0% 0% /100% 100% no-repeat;
      position: absolute;
      left:50%;
      margin-left:-2.72rem;
      z-index: 1;
      top:15%;
      text-align: center;
  }
  .Dcoupon-title{font-size:0.59rem;color:#ffffff;margin:0.4rem 0 0.2rem;}
  .Dcoupon-sub{font-size:0.32rem;color:#ffffff;}
  .Dcoupon-input{
      width:4.42rem;
      height:0.96rem;
      border:none;
      border-radius: 0.1rem;
      margin-top:0.36rem;
      padding:0 0.2rem;
      box-sizing:border-box;
      font-sizE:0.32rem;
  }
  .Dcoupon-use{
      width:3.52rem;
      height:0.84rem;
      line-height:0.84rem;
      text-align: center;
      background: linear-gradient(left,#F33300,#F95900);
      background: -webkit-linear-gradient(left,#F33300,#F95900);
      border-radius: 0.7rem;
      font-size:0.32rem;
      color:#ffffff;
      position:absolute;
      bottom:0.48rem;
      left:50%;
      margin-left:-1.76rem;
  }
  .Dcoupon-close{
      width:0.62rem;
      height:0.62rem;
      background:url('/zhiming/Public/images/public/close_.png') 0% 0% /100% 100% no-repeat;
      position:absolute;
      bottom:-1rem;
      left:50%;
      margin-left:-0.31rem;
  }
  .Dcoupon-sucess-wrap{
      width:5.22rem;
      height:5rem; 
      background-color:#ffffff;
      border-radius:0.7rem;
      position: absolute;
      left:50%;
      margin-left:-2.61rem;
      top:15%;
      text-align: center;
      display: none;
  }
  .Dcoupon-sucess-title{
      width:3.26rem;
      height:0.8rem;
      font-size:0.44rem;
      color:#ffffff;
      text-align: center;
      line-height:0.8rem;
      background: url('/zhiming/Public/images/public/img_bt.png') 0% 0% /100% 100% no-repeat;
      position:absolute;
      left:50%;
      margin-left:-1.63rem;
      top:-0.4rem;
  }
  .Dcoupon-sucess-img{width:2.2rem;height:1.68rem;margin-top:0.7rem;}
  .Dcoupon-sucess-r{font-size:0.22rem;color:#f64c3e;margin:0.15rem 0;}
  .Dcoupon-sucess-p{font-size:0.2rem;color:#605f5f;}
  .Dcoupon-sucess-ok{
      width:2.82rem;
      height:0.84rem;
      line-height:0.84rem;
      text-align: center;
      background: linear-gradient(left,#F33300,#F95900);
      background: -webkit-linear-gradient(left,#F33300,#F95900);
      border-radius: 0.7rem;
      font-size:0.32rem;
      color:#ffffff;
      margin:0.44rem auto 0;
  }
</style>
<!-- 抵用券弹窗 -->
<div class="Dcoupon-container">
    <div class="Dcoupon-bg"></div>
    <div class="Dcoupon-wrap">
        <h3 class="Dcoupon-title">输入抵用券</h3>
        <p class="Dcoupon-sub">运程测算更优惠哦！</p>
        <input type="text" class="Dcoupon-input" placeholder="请输入抵用券码">
        <div class="Dcoupon-use">我要优惠</div>
        <div class="Dcoupon-close"></div>
    </div>
    <div class="Dcoupon-sucess-wrap">
        <h3 class="Dcoupon-sucess-title">恭喜您</h3>
        <img src="/zhiming/Public/images/public/img_gxn.png" class="Dcoupon-sucess-img" alt="">
        <p class="Dcoupon-sucess-r">恭喜！您已获得超值优惠</p>
        <p class="Dcoupon-sucess-p">温馨提示：优惠仅限本次，千万不要错过哦！</p>
        <div class="Dcoupon-sucess-ok">好的</div>
        <div class="Dcoupon-close"></div>
    </div>
</div>
<script>
    var server = "<?php echo (cookie('orderidnum')); ?>";
    var discount = "<?php echo (cookie('discountprice')); ?>"; // 已优惠价格
    var channel = "<?php echo (cookie('channel')); ?>" // 渠道
    var price = "<?php echo (cookie('price')); ?>" // 价格

    $(function () {
        console.log(server)
        if (channel == 'qudao227'||channel=='qudao100') {
            if (server == 'Zwds' || server == 'Lath') {
                $('.orderMoney').html(
                    `<span style="font-size:0.28rem;color:#666666;">优惠价：</span><strong style="font-size:0.48rem;color:#d12f36;">￥${price}</strong><span class="couponBtn">本次优惠</span>`
                )
            } else if (server == 'Bbqm' || server == 'Pfc') {
                $('.orderMoney').html(
                    `<strong style="font-size:0.32rem;color:#d12f36;">￥${price}</strong><span class="couponBtn">本次优惠</span>`
                )
            } else {
                $('.orderMoney').html(
                    `<span style="font-size:0.26rem;color:#333333;">只需${price}元</span><span class="couponBtn">本次优惠</span>`
                )
            }

            console.log(discount+'data');

            if (discount != 0) {
                if (server == 'Zwds' || server == 'Lath') {
                    $('.orderMoney').html(
                        `<span style="font-size:0.28rem;color:#333333;font-weight:bold;">现价</span><span style="font-size:0.48rem;color:#f73232;font-weight:bold;">${price}元</span><span style="font-size:0.18rem;color:#333333;">(已抵扣${discount}元)</span>`
                    )
                } else {
                    $('.orderMoney').html(
                        `<span style="font-size:0.26rem;color:#333333;font-weight:bold;">现价</span><span style="font-size:0.33rem;color:#f73232;font-weight:bold;">${price}元</span><span style="font-size:0.18rem;color:#333333;">(已抵扣${discount}元)</span>`
                    )
                    exit;
                }
            }
            $('.couponBtn').click(function () {
                $('.Dcoupon-container').fadeIn(300);
            })
            $('.Dcoupon-close').click(function () {
                $('.Dcoupon-container').fadeOut(300);
            })
            $('.Dcoupon-sucess-ok').click(function () {
                $('.Dcoupon-container').fadeOut(300);
            })
            $('.Dcoupon-use').click(function () {
                let couponVal = $('.Dcoupon-input').val();
                $.post("<?php echo U('Index/couponSelect','',false);?>", {
                    code: couponVal
                }, function (response) {
                    let data = JSON.parse(response)
                    if (data.code === 1) {
                        $('.Dcoupon-wrap').fadeOut();
                        $('.Dcoupon-sucess-wrap').fadeIn();
                        $('.public_pp_price strong').text(`￥${data.price}元`)
                        if (server == 'Zwds' || server == 'Lath') {
                            $('.orderMoney').html(
                                `<span style="font-size:0.28rem;color:#333333;font-weight:bold;">现价</span><span style="font-size:0.48rem;color:#f73232;font-weight:bold;">${data.price}元</span><span style="font-size:0.18rem;color:#333333;">(已抵扣${data.discount}元)</span>`
                            )
                        } else {
                            $('.orderMoney').html(
                                `<span style="font-size:0.26rem;color:#333333;font-weight:bold;">现价</span><span style="font-size:0.33rem;color:#f73232;font-weight:bold;">${data.price}元</span><span style="font-size:0.18rem;color:#333333;">(已抵扣${data.discount}元)</span>`
                            )
                        }
                    } else {
                        layer.msg("抵用券无效，请重新输入");
                        $('.Dcoupon-input').val('')
                    }
                    console.log(data)
                })
            })
        }
    })
</script>
<script>
    // 半价优惠
    const priceBJ = "<?php echo (cookie('discountQczh')); ?>"
    $(function () {
        if (parseInt(priceBJ) === 1) {
            if (server == 'Bbqm' || server == 'Pfc') {
                $('.orderMoney').html(
                    `<span style="color:#F95900;font-size:0.24rem;">(已享受新用户半价优惠)</span><strong style="font-size:0.32rem;color:#d12f36;">￥${price}</strong>`
                )
            } else {
                $('.orderMoney').html(
                    `<span class="orderPrice">原价:${price * 2}元</span><span style="font-size:0.26rem;color:#333333;margin-left:0.2rem">只需${price}元</span></br><span
    style="color:#F95900;font-size:0.24rem;">本次测算已使用新用户优惠券，<br/>可享半价优惠</span>`
                )
            }
        }
    })
</script>
<!-- 赞赏支付 -->
<style>
  .public_pay_container {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
  }

  .public-pay_bg {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    right: 0;
    top: 0;
    right: 0;
  }

  .public_pay_wrap {
    width: 5.18rem;
    background: url('/zhiming/Public/images/public/zs_bj.png') #ffffff no-repeat;
    background-size: 100% 1.7rem;
    padding: 0.4rem;
    box-sizing: border-box;
    min-height: 4rem;
    border-radius: 0.12rem;
    position: absolute;
    left: 50%;
    top: 15vh;
    margin-left: -2.59rem;
  }

  .public_pay_close {
    width: 0.2rem;
    height: 0.2rem;
    background: url('/zhiming/Public/images/public/zs_close.png') no-repeat;
    background-size: 100% 100%;
    position: absolute;
    right: 0.2rem;
    top: 0.15rem;
  }

  .public_pay_title {
    font-size: 0.36rem;
    color: #ffffff;
    text-align: center;

  }

  .public_pay_title::after,
  .public_pay_title::before {
    content: '';
    width: 0.35rem;
    height: 0.43rem;
    background: url('/zhiming/Public/images/public/zs_left.png') no-repeat;
    background-size: 100% 100%;
    display: inline-block;
    vertical-align: top;
  }

  .public_pay_title::after {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    margin-left: 0.2rem;
  }

  .public_pay_title::before {
    margin-right: 0.2rem;
  }

  .public_pay-user_box {
    text-align: center
  }

  .public_pay_user {
    margin: 0.3rem 0 0.2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border: 0.02rem solid #999999;
    display: inline-block
  }

  .public_pay_subt {
    font-size: 0.3rem;
    color: #333333;
    font-weight: bold;
  }

  .public_pay_point {
    font-size: 0.28rem;
    color: #999999;
  }

  .public_pay_list {
    list-style: none;
    padding: 0 0.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .public_pay_item {
    margin-top: 0.2rem;
    width: 1.8rem;
    height: 0.6rem;
    line-height: 0.6rem;
    box-sizing: border-box;
    border: 0.02rem solid #989898;
    border-radius: 0.12rem;
    font-size: 0.3rem;
    color: #333333;
    text-align: center;
  }

  .public_pay_item.on {
    border: none;
    background-color: #f34f4f;
    color: #ffffff;
  }

  .public_pay_btn_title {
    font-size: 0.3rem;
    color: #f34f4f;
    text-align: center;
    margin-top: 0.4rem;
  }

  .public_pay_btn_list {
    list-style: none;
    padding: 0 0.2rem;

  }

  .public_pay_btn_item {
    margin-top: 0.2rem;
    width: 100%;
    height: 0.8rem;
    line-height: 0.8rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.3rem;
    border-radius: 0.1rem;
  }

  .public_pay_btn_item.wx {
    background-color: #249a23;
  }

  .public_pay_btn_item.zfb {
    background-color: #3b9cda;
  }
</style>
<!-- 支付弹窗 -->
<div class="public_pay_container">
  <div class="public-pay_bg"></div>
  <div class="public_pay_wrap">
    <div class="public_pay_title">赞赏<span class="masterName"></span>大师</div>
    <div class="public_pay-user_box">
      <span class="public_pay_user"></span>
      <!-- <h4 class="public_pay_subt">赞赏<span class="masterName"></span>大师</h4> -->
      <p class="public_pay_point">赞赏的越多，新的一年好运越多哦</p>
    </div>
    <ul class="public_pay_list">
      <!-- 支付价格 -->
    </ul>
    <div class="public_pay_btn_box">
      <p class="public_pay_btn_title ">赞赏后查看所有测算结果</p>
      <ul class="public_pay_btn_list">
        <li class="public_pay_btn_item wx">微信支付</li>
        <li class="public_pay_btn_item zfb">支付宝支付</li>
      </ul>
    </div>
    <div class="public_pay_close"></div>
  </div>
</div>
<script>
  $(function () {
    $.getJSON("<?php echo U('Index/MultiplePay','',false);?>", function (data) {
      if (parseInt(data.code) === 1) {
        // 初始
        $('#publicPayPopup').remove();
        $('.orderMoney').html('')
        // 数据渲染
        let payData = data.payData;
        $('.public_pay_user').css({
          'background-image': 'url(' + data.imgUrl + ')'
        })
        $('.masterName').text(data.name)
        $(".public_pay_point").text(payData[data.selectIndex].text)
        let htmltext = '';
        payData.forEach(function (item, index) {
          htmltext +=
            `<li class="public_pay_item ${index==data.selectIndex?'on':''}">${item.price}元</li>`
        });
        $('.public_pay_list').html(htmltext)
        //微信内隐藏支付宝
        window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger' ?
          $('.public_pay_btn_item.zfb').hide() : '';
        // 切换价格
        $('.public_pay_list .public_pay_item').click(function () {
          let index = $(this).index();
          let self = $(this);
          if (!self.hasClass('on')) {
            $.post("<?php echo U('Index/changeOrderPay','',false);?>", {
                payId: index
              },
              function (data) {
                let dataParse = JSON.parse(data);
                if (parseInt(dataParse.code) === 1) {
                  self.addClass("on").siblings().removeClass("on");
                  $(".public_pay_point").text(payData[index].text)
                } else {
                  console.log('切换失败')
                }
              })
          }
        })
      } else {
        var price = "<?php echo (cookie('price')); ?>" // 价格
          var priceName="<?php echo (cookie('priceName')); ?>" //统一名称
        $('.public_pay_container').remove();
        if (channel !== 'qudao227') {
          $('.orderMoney').html(
            `
          <span style="font-size:0.28rem;color:#333333;">限时特惠价:</span>
          <span style="font-size:0.28rem;color:#db4852;">${priceName}</span>
          `
          )

        //<span style="font-size:0.24rem;color:#898989;text-decoration:line-through">￥<?php echo (cookie('costPrice')); ?></span>
        }
      }
    })
    // 打开支付窗
    $('.J_payShow').click(function () {
      $('.public_pay_container').fadeIn(300)
    })
    // 关闭支付窗
    $('.public_pay_close').click(function () {
      $(".public_pay_container").fadeOut(300);
    })
    // 发起支付
    $('.public_pay_btn_item').click(control(function () {
      if ($(this).hasClass('wx')) {
        payment('wx', function (isweixin) {
          if (isweixin) {
            window.location.href =
              `<?php echo U('${server}/jieguoye','',false);?>?ordernum=<?php echo (cookie('orderid')); ?>`
          } else {
            window.location.href = `<?php echo U('${server}/paywx','',false);?>`
          }
        })
      } else if ($(this).hasClass("zfb")) {
        payment('zfb', function () {
          window.location.href = `<?php echo U('${server}/pay','',false);?>`
        })
      }
    }, 500, 3000, 1))
  })

  // 支付方式
  function payment(payType, callBack) {
    if (payType === 'wx') {
      if (!window.hasOwnProperty('wx')) {
        let scriptIn = document.createElement('script')
        scriptIn.src = "https://res.wx.qq.com/open/js/jweixin-1.2.0.js"
        document.body.appendChild(scriptIn)
      }
      if (window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger') {
        $.getJSON("<?php echo U('Index/multiplePayWx','',false);?>", function (data) {
          WeixinJSBridge.invoke(
            'getBrandWCPayRequest', {
              "appId": data.appId, //公众号名称，由商户传入
              "timeStamp": JSON.stringify(data.timeStamp), //时间戳，自1970年以来的秒数
              "nonceStr": data.nonceStr, //随机串
              "package": data.package,
              "signType": data.signType, //微信签名方式：
              "paySign": data.paySign //微信签名
            },
            function (res) {
              if (res.err_msg == "get_brand_wcpay_request:ok") {
                callBack && callBack('wx')
              }
            }
          )
        })
      } else {
        callBack && callBack()
      }
    } else if (payType === 'zfb') {
      callBack && callBack()
    }
  }

  /**
   * 节制
   */
  function control(method, delay, duration, controlType) {
    let timer = null;
    let flag = false;
    let start = new Date().getTime();
    return function () {
      let context = this;
      let args = arguments;
      if (controlType) {
        if (!flag) {
          method.apply(context, args);
          flag = true;
          start = new Date().getTime();
        }
        if (timer) clearTimeout(timer)
        timer = setTimeout(function () {
          flag = false;
          let end = new Date().getTime();
          if (end - start >= duration) {
            method.apply(context, args);
            start = end;
          }
        }, delay)
      } else {
        let end = new Date().getTime();
        if (timer) clearTimeout(timer)
        if (end - start >= duration) {
          method.apply(context, args);
          start = end;
        } else {
          timer = setTimeout(function () {
            method.apply(context, args);
            start = new Date().getTime();
          }, delay)
        }
      }
    }
  }
</script>

    <!--<script type="text/javascript" src="https://static-oss.qutoutiao.net/game/sdk/h5.v1.0.0.js"></script>-->

<?php if(($_COOKIE['hidePopupNum']== 1) or ($_COOKIE['QSorderNo']== 1)): elseif(($_COOKIE['qudaoJgTypeNum']== 1) or ($_COOKIE['qudaoJgTypeNum']== 2)): ?>
    <!-- 首页 支付页 返回弹窗 -->
    <style>
   /*  */
    .wxPay_container{
        width:100%;
        height:100%;
        background-color:rgba(0,0,0,0.3);
        position: fixed;
        top:0;
        left:0;
        z-index: 99;
        display: none;
    }
    .wxPay_wrap{
        font-size:14px;
        width:90%;
        border-radius: 10px;
        position: absolute;
        left:50%;
        top:50%;
        transform: translate(-50%,-50%);
        -moz-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        -o-transform: translate(-50%,-50%);
        background-color:#ffffff;
    }
    .wxPay_title{
        color:#ffffff;
        background-color:#951F2B;
        text-align: center;
        padding:10px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .wxPay_content{padding:10px;}

    .wxPay_info{
        background-color:#FCF2D9;
        padding:10px;
    }
    .I_left{width:60px;display: inline-block;}
    
    .birth{display: flex;}
    .I_right{display:flex;flex-direction: column;width:100%;}
    .end_content{padding:15px 0;text-indent: 2em;}
    .wxPay_btn{
        width:60%;
        height:40px;
        line-height: 40px;
        text-align: center;
        color:#ffffff;
        background-color:#951F2B;
        border-radius:20px;
        margin:10px auto;
    }
    .close_bg{
        background:url('/zhiming/Public/images/public/close_.png') no-repeat;
        background-size:100% 100%;
        position: absolute;
        width:35px;
        height:35px;
        right:0;
        top:-18%;
    }
    /* 优惠券 */
    .discount_container{
        width:100%;
        height:100%;
        position: fixed;
        top:0;
        left:0;
        z-index: 99;
        display: none;
    }
    .discount_bg{
        width:100%;
        height:100%;
        position: absolute;
        background-color:rgba(0,0,0,0.7);
        top:0;left: 0;
    }
    .discount_container.on{display: block;}
    .discount_container.on .discount_content{animation:onShow 0.3s ease-out forwards;}
    @keyframes onShow{
        0%{opacity: 0;transform: scale(0.3);-webkit-transform: scale(0.3);}
        100%{opacity: 1;transform: scale(1);-webkit-transform: scale(1);}
    }
    .discount_content{
        width:6.6rem;
        height:7rem;
        background:url('/zhiming/Public/images/public/fyh_bj.png') 0% 0% / 100% 100% no-repeat;
        position: absolute;
        left:50%;
        margin-left:-3.3rem;
        top:15%;
    }
    .discount_txt{padding:0.88rem 0.65rem 0;}
    .discount_txt p{line-height: 1.5;color:#333333;font-size:0.34rem;}
    .discount_strong{color:#ec1212;font-weight: bold;}
    .discount_bottom{
        width:100%;
        height:2.26rem;
        background:url('/zhiming/Public/images/public/yhj_bj1.png') 0% 0% / 100% 100% no-repeat;
        position: absolute;
        z-index: 2;
        bottom:0;
        left:0;
        display: flex;
        justify-content: center;
        align-items: center;
        display: -webkit-box;
        -webkit-box-align: center;
        -webkit-box-pack: center;
    }
    .discount_container.on .discount_content .discount_coupon{
        animation:YHJonShow 0.3s ease-out 0.3s forwards;
    }
    @keyframes YHJonShow{
        0%{bottom:0rem;}
        100%{bottom:1.88rem;}
    }
    .discount_coupon{
        width:5.16rem;
        height:1.66rem;
        background:url('/zhiming/Public/images/public/fyh_yhj.png') 0% 0% / 100% 100% no-repeat;
        position: absolute;
        bottom: 0.01rem;
        left:50%;
        margin-left:-2.58rem;
        display: flex;
        display: -webkit-box;
        transition: all 0.3s ease-out 0.3s;
        z-index: 1;
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
    }
    .discount_coupon .coupon_money{
        width:2rem;
        height:1.66rem;
        font-size:0.54rem;
        color:#fffacf;
        text-align: center;
        line-height:1.66rem;
    }
    .discount_coupon .coupon_money strong{font-size:1.08rem;}
    .discount_coupon .coupon_txt{
        flex: 1;
        -webkit-box-flex:1;
        text-align: center;
        line-height:1.66rem;
        font-size: 0.57rem;
        font-weight: bold;
        color:#fffacf;
        letter-spacing:0.1rem;
    }
    .discount_btn{
        width:2.78rem;
        height:0.98rem;
        margin-top:0.3rem;
        background:linear-gradient(#FF5F1F,#EF1C1C);
        background:-webkit-linear-gradient(#FF5F1F,#EF1C1C);
        text-align: center;
        line-height: 0.98rem;
        border-radius: 0.7rem;
        box-sizing: border-box;
        font-size:0.4rem;
        color:#ffffff;
        font-weight:bold;
        display: block;
    }
    .discount_btn:nth-child(2){
        margin-left:0.3rem;
        background:none;
        color:#333333;
        border:0.02rem solid #ec1212;
    }
    .discount_close{
        width:0.64rem;
        height:0.64rem;
        background:url('/zhiming/Public/images/public/close_.png') 0% 0% / 100% 100% no-repeat;
        position: absolute;
        top:-0.64rem;
        right:0rem;
    }
    /* 提示分享 */
    .ts_tc_container{
        width:100%;
        height:100%;
        background-color:rgba(0,0,0,0.5);
        position: fixed;
        top:0;left:0;
        z-index: 99;
        display: none;
    }
    .ts_tc_bg{
        width:100%;
        height:300px;
        background:url('/zhiming/Public/images/public/mg_share.png') no-repeat;
        background-size:100% 100%;
    }
    .ts_tc_contnet{
        font-size:18px;
        color:#ffffff;
        padding:180px 130px 30px 90px;
        text-align: center;
    }
	
	.daqs_tcbg, .daqs_tcbg2,.daqs_tcbg3{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(0,0,0,.3);
		z-index: 99;
		display: none;
	}
	.daqs_tcdiv{
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
	.daqs_tcbox2{
		width:80%;
		height:9.5rem;
		background: url('/zhiming/Public/images/bzjp_img/0902/tc@2x.png') no-repeat;
		background-size: 100% 100%;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		padding-bottom: 0.3rem;
	}
	.wxtc{
		width:50%;
		margin-top: 0.2rem;
	}
	.colse_tcbox{
		width:0.7rem;
		height:0.7rem;
		position: absolute;
		top: -8%;
		right:1%;
		background: url('/zhiming/Public/images/bzjp_img/0902/gb@2x.png') no-repeat;
		background-size: 100% 100%;
	}
	.dsqs_btn2{
		width:80%;
		margin-top:0.2rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.wxh{
		color: #F73636;
		margin-top: 0.1rem;
		font-size: 0.28rem;
	}
	.m1{
		color: #424242;
		font-size: 0.28rem;
		margin-top: 0.3rem;
	}
	.dsqs_msg{
		width:87%;
		font-size: 0.25rem;
		color: #424242;
		line-height: 0.45rem;
	}
	.dsqs_msg span{
		color: #de0003;
	}
	.daqs_alert{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(0,0,0,.1);
		z-index: 100;
		display: none;
	}
	.daqs_alert_div{
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.daqs_alert_box{
		width:4.5rem;
		height:0.8rem;
		background-color: rgba(0,0,0,.7);
		color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		border-radius: 10px;
	}
</style>

 <!--<div class="wxPay_container">-->
    <!--<div class="wxPay_wrap">-->
        <!--<div class="close_bg"></div>-->
        <!--<div class="wxPay_title"><?php if($znickname == '匿名'): ?>匿名<?php else: endif; ?>的测试结果</div>-->
        <!--<div class="wxPay_content">-->
            <!--<div class="wxPay_info">-->
                <!--<p><span class="I_left">姓名：</span><?php if($znickname == '匿名'): ?>匿名<?php else: endif; ?></p>-->
                <!--<P><span class="I_left">性别：</span><?php if($_COOKIE['zsex']== 1): ?>男<?php else: ?>女<?php endif; ?></P>-->
                <!--<div class="birth">-->
                    <!--<span class="I_left">出生：</span>-->
                    <!--<div class="I_right">-->
                        <!--<p>公(阳)历 </p>-->
                        <!--<p>农(阴)历 </p>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <!--<p class="end_content">......</p>-->
            <!--<div class="wxPay_btn weixinzfFH">立即查看全部</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->


<!--男大师-->
<div class="daqs_tcbg2">
	<div class="daqs_tcdiv">
		<div class="daqs_tcbox2">
			<div class="colse_tcbox" onclick="colsebox2()"></div>
			<div class="dsqs_msg">缘主您好，如果你想找专业命理师<span>具体问题一对一分析</span>，请加知命专业<span>命理大师微信</span></div>
			<div class="m1">已复制成功微信号</div>
			<div class="wxh">GXQM_zz</div>
			<img class="dsqs_btn2" onclick="copyqcwx(),openwx(),pvuvStatistics('jg_indexZf_dkwx')" src="/zhiming/Public/images/bzjp_img/0902/tcan@2x.png" />
			<img class="wxtc" src="/zhiming/Public/images/bzjp_img/0902/wxtc.gif" />
		</div>
	</div>
</div>

<div class="daqs_alert">
	<div class="daqs_alert_div">
		<div class="daqs_alert_box">微信号已复制前往添加好友</div>
	</div>
</div>

<!--女大师-->


<!-- 返回弹窗 优惠券 -->
<!--<div class="discount_container">-->
    <!--<div class="discount_bg"></div>-->
    <!--<div class="discount_content">-->
        <!--<div class="discount_txt">-->
            <!--<p><span class="discount_strong">&lt;!&ndash;{$bztaisui}&ndash;&gt;</span><span class="discount_strong">大师强烈建议你查阅你的年运报告</span>，-->
                <!--特赠送优惠卷一张,可免费或抵扣相应金额。-->
            <!--</p>-->
        <!--</div>-->
        <!--<div class="discount_coupon">-->
            <!--<div class="coupon_money">￥<strong>&lt;!&ndash;{$Think.cookie.discountprice}&ndash;&gt;</strong></div>-->
            <!--<div class="coupon_txt">优惠券</div>-->
        <!--</div>-->
        <!--<div class="discount_bottom">-->
            <!--<?php if($wxlogin == 1 ): ?>-->
                <!--<a href="javascript:;" class="discount_btn YHPay">马上使用</a>-->
                <!--<a href="javascript:;" class="discount_btn share_btn">送给朋友用</a>-->
                <!--<?php else: ?>-->
                <!--<a href="javascript:;" class="discount_btn YHPay">马上使用</a>-->
            <!--<?php endif; ?>-->
        <!--</div>-->
        <!--<div class="discount_close"></div>-->
    <!--</div>-->
<!--</div>-->

<!-- 提示分享 -->
<!--<div class="ts_tc_container">-->
    <!--<div class="ts_tc_bg">-->
        <!--<div class="ts_tc_contnet">点击右上角分享到微信群和朋友圈。</div>-->
    <!--</div>-->
<!--</div>-->

<script>
	function openwx(){
		console.log("openweixin")
		$(".daqs_alert").show();
		setTimeout(function(){ 
			$(".daqs_alert").hide();
			window.location.href = 'weixin://';
		}, 1000);
	}
	function colsebox2(){
		$(".daqs_tcbg2").hide();
	}
	function copyqcwx(){
		var oInput = document.createElement('input');
		oInput.setAttribute('value', 'GXQM_zz');
		oInput.setAttribute('readonly', 'readonly');
		document.body.appendChild(oInput);
		oInput.setSelectionRange(0, 99); // 选择对象
		oInput.select();
		document.execCommand('Copy'); // 执行浏览器复制命令
		oInput.className = 'oInput';
		oInput.style.display='none';
		document.body.removeChild(oInput);
		console.log("copy");
	}
	
    var oldMoney = "<?php echo (cookie('price')); ?>"; //原价
    var discountprice='<?php echo (cookie('discountprice')); ?>';//优惠价格
    var isPayYHJ = "<?php echo ($discount); ?>"; //是否优惠
    var yhMoneyNode = "<span style='font-size:0.24rem;color:#cB2312;'>(已使用"+discountprice+"元优惠券)</span>";
    var channel = "<?php echo ($channel); ?>"; // 渠道
    var channelDiscount='<?php echo ($channelDiscount); ?>';
    var hidePopup='<?php echo (cookie('hidePopupNum')); ?>';
    var QSorderNo='<?php echo (cookie('QSorderNo')); ?>';
    var qudaoJgTypeNum='<?php echo (cookie('qudaoJgTypeNum')); ?>';//1为首页  2为支付页
	
	function pushHistory(){
	    window.history.pushState('index', null, document.URL);   
	}
	function pushHistory2(){
	    window.history.pushState('zhifu', null, document.URL);   
	}
	
    $(function(){
        if(isPayYHJ == 1){
            $('.public_pp_price strong').html('￥'+oldMoney+'元'+yhMoneyNode);
            $('.orderMoney').append(yhMoneyNode);
            $('.YHPay').css('background','rgba(0,0,0,0.7)').text('已使用');
        }

        var sss;
        /*== if(hidePopup==1||QSorderNo==1){

        }else{
            window.history.pushState(null,null,'');
        } */
		
		pushHistory2();
		
        window.addEventListener("popstate", function(e) {
			
			
            if (e.state == null) {
				pvuvStatistics('jg_indexZf_wxtc');
				$.getJSON("<?php echo U('Index/jieguoyeReturn','',false);?>",function(data){//回调统计入库
				});
				copyqcwx();
                $(".daqs_tcbg2").show();
            } else if (e.state != null && e.state == 'zhifu') {
                window.history.back(-1)
            }
			
            /* if(tcbool){//不触发返回弹窗
                console.log('window.addEventListener')
                window.history.back(-1);
                return;
            } */
			
			//tcbool = true;
			//$(".daqs_tcbg2").show();
			//window.history.pushState(null,null,'');
			
            // 阻止弹窗滚动
//            var scrollTop = window.pageYOffset
//            || document.documentElement.scrollTop
//            || document.body.scrollTop
//            || 0;
//            sss=scrollTop;//保存当前滚动条位置
//            document.body.style.top=-1*scrollTop+"px";
//            document.body.style.position='fixed';

        }, false);
		
        $('.close_bg').on('click',function(){
            $('.wxPay_container').css('display','none');
            document.body.style.overflow='';
            document.body.style.position=null;
            document.body.style.top=null;
            window.scrollTo(0,sss);
            if(channelDiscount==1){
                $('.discount_container').addClass('on');
            }
        })
        $('.discount_close').on('click',function(){
            $('.discount_container').removeClass('on');
        })
        $('.share_btn').on('click',function(){
            $('.ts_tc_container').fadeIn();
        })
        $('.ts_tc_container').on('click',function(){
            $(this).fadeOut();
        })
    });

    // 弹框微信支付
    $(".weixinzfFH").on('click',function(){
        zhifuPopup();
         if(wxlogin==1){//微信支付
            wxzf();
         }else{//微信H5支付
            payMoney('wx');
         }
    });

    function pvuvStatistics(typeName){//pvuv统计
        $.getJSON("<?php echo U('Index/interfacPvUv','',false);?>",{typeName:typeName},function(data){//点击回调入库
        });
    }


    // 优惠支付
//    $(".YHPay").on('click',function(){
//        if(isPayYHJ == 0){
//            if(wxlogin==1){
//                $.getJSON("<?php echo U('Lnyc2019/payGzh','',false);?>",{price:discountprice},function(data){//回调入库
//                    WeixinJSBridge.invoke(
//                            'getBrandWCPayRequest', {
//                                "appId":data.appId,     //公众号名称，由商户传入
//                                "timeStamp":data.timeStamp,         //时间戳，自1970年以来的秒数
//                                "nonceStr":data.nonceStr, //随机串
//                                "package":data.package,
//                                "signType":data.signType,         //微信签名方式：
//                                "paySign":data.paySign//微信签名
//                            },
//                            function(res){
//                                if(res.err_msg == "get_brand_wcpay_request:ok" ) {
//                                    location.href="<?php echo U('Lnyc2019/jieguoye','',false);?>?ordernum=<?php echo (cookie('orderid')); ?>";
//                                }     // 使用以上方式判断前端返回,微信团队郑重提示：res.err_msg将在用户支付成功后返回    ok，但并不保证它绝对可靠。
//                            }
//                    );
//                });
//            }else{
//                $.post("<?php echo U('Index/payReduce','',false);?>",{price:discountprice},function(data){//回调入库
//                    $('.public_pp_price strong').html('￥'+data+'元'+yhMoneyNode);
//                    $('.orderMoney').text('只需'+data+'元');
//                    $('.orderMoney').append(yhMoneyNode);
//                    $('.YHPay').css('background','rgba(0,0,0,0.7)').text('已使用');
//                    $('#publicPayPopup').show();
//                });
//            }
//        }else{
//            $('#publicPayPopup').show();
//        }
//    });
</script>
    <?php else: endif; ?>

<?php if($channel == qudao245): ?><script type="text/javascript" src="https://newidea4-gamecenter-frontend.1sapp.com/sdk/prod/h5.v1.0.0.js"></script>
    <?php else: endif; ?>

<script src="/zhiming/Public/js/qrcode.js"></script>
<script>
    var orderid="<?php echo (cookie('orderid')); ?>";
    var csNameJump="https://wx.ddznzj.com"+"<?php echo ($csNameJump); ?>";
    var uid='<?php echo (cookie('uid')); ?>';


    if(orderid){//支付页循环查询
        setInterval(function(){
            $.getJSON("<?php echo U('Index/selectLoop','',false);?>",{orderid:orderid},function(data){
                if(data){
                    location.href='<?php echo ($csNameJump); ?>';
                }else{
                    console.log(data);
                }
            });
        },1500);
    }

    /*qudao245支付接口加载类*/
    function payMoney245(getOrderid,jumpUrl){
        $.getJSON("<?php echo U('Index/selectLoop','',false);?>",{orderid:orderid},function(data){
            if(data){
                console.log(data);
                if(jumpUrl){location.href=jumpUrl;
                }else{location.href=csNameJump;
                }
            }else{
                if(getOrderid){
                    console.log('getOrderid');
                    qttGame.pay({openId:'<?php echo (cookie('QTTopenid')); ?>', money: '<?php echo (cookie('price')); ?>'*100+'', appId: '<?php echo (cookie('QTTappid')); ?>', platform: 'qtt',
                        notifyUrl: 'https://hy.yixueqm.com/zhiming/index.php/Home-Index-notify_urlwx?orderid='+getOrderid,gameName: '知命',ext:'{"orderid":""}'});
                    //var orderid=getOrderid;
                }else{
                    console.log('Orderid');
                    qttGame.pay({openId:'<?php echo (cookie('QTTopenid')); ?>', money: '<?php echo (cookie('price')); ?>'*100+'', appId: '<?php echo (cookie('QTTappid')); ?>', platform: 'qtt',
                        notifyUrl: 'https://hy.yixueqm.com/zhiming/index.php/Home-Index-notify_urlwx?orderid=<?php echo (cookie('orderid')); ?>',gameName: '知命',ext:'{"orderid":"<?php echo (cookie('orderid')); ?>"}'});
                }
            }
        });


        console.log(orderid);

        if(orderid){
            setInterval(function(){
                $.getJSON("<?php echo U('Index/selectLoop','',false);?>",{orderid:orderid},function(data){
                    if(data){
                        console.log(data);
                        if(jumpUrl){
                            location.href=jumpUrl;
                        }else{
                            location.href=csNameJump;
                        }

                    }else{
                        console.log(data);
                    }
                });
            },2000);
        }else{
            setInterval(function(){
                $.getJSON("<?php echo U('Index/selectLoop','',false);?>",{orderid:getOrderid},function(data){
                    if(data){
                        console.log(data);
                        if(jumpUrl){
                            location.href=jumpUrl;
                        }else{
                            location.href=csNameJump;
                        }

                    }else{
                        console.log(data);
                    }
                });
            },2000);
        }
    }

    /*qudao135 花生地铁*/
    function payMoney135(payType){
        //closePay();
        sessionStorage.setItem("payType",payType);

        var payType = payType;
        var bussiCode = 'business006';
        var bussiDesc = '知命';
        var goodsCode = 'zhimingQudao135';
        var goodsDesc = '知命';
        var money = '<?php echo (cookie('price')); ?>';
        var userId='<?php echo (cookie('uid')); ?>';
        var extContent = orderid;

        if(get_os()==2){
            setupWebViewJavascriptBridge(function(bridge) {
                bridge.callHandler('peanutPay',{"payType":payType,"bussiCode":bussiCode,"bussiDesc":bussiDesc,"goodsCode":goodsCode,"goodsDes":goodsDesc,"price":money,"userId":userId,"extContent":extContent}, function responseCallback(responseData) {});
            });
        }else{
            window.news.peanutPay(payType,bussiCode,bussiDesc,goodsCode,goodsDesc,money,userId,extContent);
        }
    };
    function setupWebViewJavascriptBridge(callback) {
        if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); }
        if (window.WVJBCallbacks) { return window.WVJBCallbacks.push(callback); }
        window.WVJBCallbacks = [callback];
        var WVJBIframe = document.createElement('iframe');
        WVJBIframe.style.display = 'none';
//        WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__';
        WVJBIframe.src='https://__bridge_loaded__';
        document.documentElement.appendChild(WVJBIframe);
        setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0)
    }

    function PayResultCallBack(res){
        var payType = sessionStorage.getItem("payType");

        if(get_os()==2){
        }else{
            var res = JSON.parse(res);
        }
        if(res.resultCode==1){
            if(res.extContent){
                var orderid=res.extContent;
            }
            layer.load();
//           alert('成功:'+orderid);
//            if(payType==3){
//                setTimeout(function(){
//                    $.getJSON("<?php echo U('Index/notify_urlwx','',false);?>",{out_trade_no:orderid},function(data){//回调入库
//                        location.href=csNameJump;
//                        layer.closeAll('loading');
//                    });
//                },500)
//            }else{
                setTimeout(function(){
                    $.getJSON("<?php echo U('Index/notify_urlwx','',false);?>",{orderid:orderid},function(data){//回调入库
                        location.href=csNameJump;
                        layer.closeAll('loading');
                    });
                },500)
//           }

            setTimeout(function(){
                location.href=csNameJump;
                layer.closeAll('loading');
            },5000)

        }else if(res.resultCode==2){
            showAlert("#payWait-msg");
        }else if(res.resultCode==0){
            showAlert("#payError-msg");
        }
    }

    /*系统类型检测*/
    function get_os() {
        var userAgent = navigator.userAgent || navigator.vendor || window.opera;
        if (userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)) {
            return 2;
        }
        else {
            return 1;
        }
    }


    /*爱豆支付*/
    function aidouPay(){
        android.heimiPay("{\"uid\":"+uid+",\"gold\":"+price+",\"price\":"+price*100+",\"title\":'知命服务',\"content\":'知命测算',\"url\":'"+csNameJump+"',\"orderid\":'"+orderid+"'}");
    }

    /*渠道直接支付触发*/
    function zhifuPopup(){
        if(channel=='C001'){
            payMoney('wx');
            exit;
        }
        /*头条精选*/
        if(channel=='qudao26'){
            payMoneyTtjx();
            exit;
        }
        /*万娱  万年历*/
        if(channel=='YSWNL_iOS'){
            selectLoop();
            payMoneyWanYu();
            exit;
        }

        //微信扫码检测
        if('<?php echo ($pc); ?>'==1){
            selectLoop();
        }

        //谷歌支付
        if('<?php echo (cookie('paytypeGg')); ?>'==1){
            console.log('谷歌支付');
            if(channel=='ssh_google'){//美元价格
                payTypeGugeSsh_google();
            }else{
                payTypeGuge();
            }

            exit;
        }
    }

    //微信扫码
    var wxsaoma='<?php echo ($wxsaoma); ?>';
    if(wxsaoma ==''){
        $('#qrcode').css('display','none');
    }
    var qrcode = new QRCode('qrcode', {
        text: wxsaoma,  //链接
        width: 120,
        height: 120,
        colorDark : '#000000',
        colorLight : '#ffffff',
        correctLevel : QRCode.CorrectLevel.H
    });

    //订单循环检测
    function selectLoop(){
        payBoolean=setInterval(function(){
            $.getJSON("<?php echo U('Index/selectLoop','',false);?>",{orderid:orderid},function(data){
                console.log(data);
                if(data){
                    clearInterval(payBoolean)
                    var oli = layer.load();
                    setTimeout(function(){
                        layer.closeAll('loading');
                        layer.msg('支付成功', {icon: 1});
                        setTimeout(function(){
                            location.href=csNameJump;
                        },1300);
                    },1000);
                }
            });
        },2000)
    }


    function payMoneyWanYu(){
        console.log("万娱测试");
        window.webkit.messageHandlers.catchPayParam.postMessage("{\"orderId\":\"<?php echo (cookie('orderid')); ?>\"," +
        "\"productCode\":\"<?php echo (cookie('WYproductId')); ?>\"," +
        "\"amout\":\"<?php echo (cookie('price')); ?>\"," +
        "\"productName\":\"知命测算\"," +
        "\"serverId\":\"123456789\"}");
    }
    function payTypeGuge(){
        console.log('谷歌');
        android.pay(1,"{\"orderId\":\"<?php echo (cookie('orderid')); ?>\"," +
                "\"notifyUrlwx\":\"https://hy.yixueqm.com/zhiming/index.php/home-index-notify_urlwx?orderid=<?php echo (cookie('orderid')); ?>\"," +
        "\"returnUrlwx\":\"https://hy.yixueqm.com/zhiming/index.php/Home-Index-return_urlwx?orderid=<?php echo (cookie('orderid')); ?>&csName=<?php echo (cookie('orderidnum')); ?>\"," +
        "\"price\":\"<?php echo (cookie('price')); ?>\"," +
                "\"productId\":\"smgold28\"," +
                "\"productName\":\"知命测算\"}")
    }
    function payTypeGugeSsh_google(){
        console.log('谷歌ssh28');
        android.pay(1,"{\"orderId\":\"<?php echo (cookie('orderid')); ?>\"," +
        "\"notifyUrlwx\":\"https://hy.yixueqm.com/zhiming/index.php/home-index-notify_urlwx?orderid=<?php echo (cookie('orderid')); ?>\"," +
        "\"returnUrlwx\":\"https://hy.yixueqm.com/zhiming/index.php/Home-Index-return_urlwx?orderid=<?php echo (cookie('orderid')); ?>&csName=<?php echo (cookie('orderidnum')); ?>\"," +
        "\"price\":\"<?php echo (cookie('price')); ?>\"," +
        "\"productId\":\"ssh28\"," +
        "\"productName\":\"神算汇测算\"}")
    }

</script>
    <script src="/zhiming/Public/js/jquery.min.js"></script>
    <script src="/zhiming/Public/js/layer/layer.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
        // H5支付事件
        var ispress = true;
        function payMoney(payType){
            if(ispress){
                layer.load();
                if(payType == "wx"){
                    layer.closeAll('loading');
                    window.location.href="<?php echo U('Sssd/paywx','',false);?>";
                }else if(payType == "zfb"){
                    layer.closeAll('loading');
                    $.getJSON("<?php echo U('Index/getPayZfbUrl','',false);?>",function(data){if(data.url){location.href=data.url;}else{window.location.href = "<?php echo U('Index/jumpPayZfb','',false);?>";}});
                }
                ispress = false;
                setTimeout(function(){
                    layer.closeAll('loading');
                },30000)
                setTimeout(function(){
                    ispress = true;
                },2000)
            }else{
                console.log('你不能重复发起支付')
            }
        }

        var QTTopenid="<?php echo (cookie('QTTopenid')); ?>";
        var channel="<?php echo ($channel); ?>";
         $('#fiex').on('click',function(){//悬浮付费解锁所有项
             $.getJSON("<?php echo U('Index/fufeiyeXfan','',false);?>",{csName:'SSSD'},function(data){//悬浮点击统计
             });
             publicPayPopup();
        })
        $('.ljck_btn').on('click',function(){//立即查看
            $.getJSON("<?php echo U('Index/fufeiyeLjcs','',false);?>",{csName:'SSSD'},function(data){//立即查看统计
            });
            publicPayPopup();
        })
        $('.J_payPopupShow').on('click',function(){//解锁查看内容
            $.getJSON("<?php echo U('Index/fufeiyeJsan','',false);?>",{csName:'SSSD'},function(data){//解锁查看统计
            });
            publicPayPopup();
        })
        $('.pay_btn').on('click',function(){
            publicPayPopup();
        })
        $('#publicPPClose').on('click',function(){
            $('#publicPayPopup').css('display','none');
        })

        function publicPayPopup(){
            if(channel=='qudao245'&&QTTopenid!=''){//趣头条支付
                payMoney245();exit;
            }else if(channel=='appaidou'){//爱豆支付
                aidouPay();exit;
            }
            zhifuPopup();
            $('#publicPayPopup').css('display','block');
        }

         setInterval(function(){
             $.getJSON("<?php echo U('Bzjp/CountDown','',false);?>",function(data){//回调入库
                 $('#timestr').text(data);
             });
         },1000);

        $(".weixinzf").on('click',function(){
            WeixinJSBridge.invoke(
                    'getBrandWCPayRequest', {
                        "appId":"<?php echo ($appId); ?>",     //公众号名称，由商户传入
                        "timeStamp":"<?php echo ($timeStamp); ?>",         //时间戳，自1970年以来的秒数
                        "nonceStr":"<?php echo ($nonceStr); ?>", //随机串
                        "package":"<?php echo ($package); ?>",
                        "signType":"<?php echo ($signType); ?>",         //微信签名方式：
                        "paySign":"<?php echo ($paySign); ?>" //微信签名
                    },
                    function(res){
                        if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                            location.href="<?php echo U('Sssd/jieguoye','',false);?>?ordernum=<?php echo (cookie('orderid')); ?>";
                        }     // 使用以上方式判断前端返回,微信团队郑重提示：res.err_msg将在用户支付成功后返回    ok，但并不保证它绝对可靠。
                    }
            );
        });

    </script>
</body>
</html>